--Small HUD by Tyguy
--http://code.google.com/p/tyguy550/

if SERVER then return end

hook.Add("HUDPaint", "hud", function(ply)
ply = LocalPlayer()
draw.RoundedBox(2, ScrW()/50, ScrH()/1.09, ScrW()/10, ScrH()/60, Color(0, 0, 0, 150))
surface.SetFont("ChatFont")
surface.SetTextPos(ScrW()/45, ScrH()/1.09)

if ply:Health() < 50 then
surface.SetTextColor(255, 0, 0, 255)
surface.DrawText("Health "..ply:Health())
else
surface.SetTextColor(255, 255,255, 255)
surface.DrawText("Health "..ply:Health())
end


surface.SetFont("ChatFont")
surface.SetTextPos(ScrW()/14, ScrH()/1.09)
surface.SetTextColor(255, 255,255, 255)
surface.DrawText("Armor "..ply:GetActiveWeapon():Clip1())

	end )

local Hide = {
"CHudHealth",
"CHudArmor"
}	
hook.Add("HUDShouldDraw", "hide", function(name)
for k,v in pairs(Hide) do if
name == v then return false
end
end
end )

timer.Create("Advert", 600, 0, function()
chat.AddText(Color(255, 255, 255, 255), "This server is running Tyguy's ", Color(255, 0, 0, 255), "Small HUD", Color(255, 255, 255, 255), " plugin!")
end )